<template>
  <div class="laber">
    <h2>订单详情</h2>
    <el-table
      :data="$store.state.orderDetail.list"
      border
      style="width: 100%"
      :header-cell-style="{
        background: 'rgb(64, 158, 255)',
        color: '#fff',
      }"
    >
      <el-table-column prop="wdr" label="WDR号码" align="center">
      </el-table-column>
      <el-table-column prop="productWorkshop" align="center" label="生产车间">
      </el-table-column>
      <el-table-column prop="orderNo" align="center" label="车间订单号">
      </el-table-column>
      <el-table-column prop="partNo" align="center" label="零件号">
      </el-table-column>
      <el-table-column
        prop="orderDescribe"
        align="center"
        label="货物描述"
        width="300"
      >
      </el-table-column>
      <el-table-column prop="orderNum" align="center" label="订单数量">
      </el-table-column>
      <el-table-column prop="orderState" align="center" label="订单状态">
      </el-table-column>
      <el-table-column prop="startTime" align="center" label="预计生产时间">
      </el-table-column>
      <el-table-column
        prop="productTime"
        align="center"
        label="订单开始生产时间"
        width="130"
      >
      </el-table-column>
      <el-table-column prop="endTime" align="center" label="订单完结时间">
      </el-table-column>
      <el-table-column prop="yield" align="center" label="合格率">
      </el-table-column>
      <el-table-column prop="progress" align="center" label="进度">
      </el-table-column>
    </el-table>
    <h2>订单进度信息</h2>
    <el-table
      :data="$store.state.orderDetail.orderFlowMesList"
      border
      style="width: 100%"
      :header-cell-style="{
        background: 'rgb(64, 158, 255)',
        color: '#fff',
      }"
    >
      <el-table-column prop="orderNum" label="订单数量" align="center">
      </el-table-column>
      <el-table-column prop="upCount" align="center" label="自动上线数量 ">
      </el-table-column>
      <el-table-column prop="glassCount" align="center" label="胎膜数量(排数)">
      </el-table-column>
      <el-table-column prop="coldCount" align="center" label="制冷计数(排数)">
      </el-table-column>
      <el-table-column prop="screwCount" align="center" label="螺旋上线计数">
      </el-table-column>
      <el-table-column
        prop="downCount"
        align="center"
        label="质检下线计数 "
        width="300"
      >
      </el-table-column>
      <el-table-column prop="orderRow" align="center" label="排数">
      </el-table-column>
    </el-table>
    <h2>暂停信息</h2>
    <el-table
      :data="$store.state.orderDetail.orderStopMesList"
      border
      style="width: 100%"
      :header-cell-style="{
        background: 'rgb(64, 158, 255)',
        color: '#fff',
      }"
    >
      <el-table-column
        prop="recordTime"
        label="记录时间 "
        align="center"
      ></el-table-column>
      <el-table-column
        prop="recordMessage"
        label="暂停原因"
        align="center"
      ></el-table-column
    ></el-table>
  </div>
</template>

<script>
export default {
  name: "orderDetail",
  data() {
    return {};
  },
  created() {
    console.log(this.$store.state.orderDetail.orderStopMesList);
  },
  computed: {},
  methods: {},
};
</script>

<style scoped>
.laber {
  margin-left: 30px;
  margin-right: 30px;
}
.laber >>> .el-table .cell {
  white-space: pre-wrap;
}
</style>
